package com.jinmdz.fmis.mapper.entity;

import com.jinmdz.fmis.mapper.annotation.MyColumn;
import com.jinmdz.fmis.mapper.annotation.MyTable;
import com.jinmdz.fmis.mapper.base.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 接运任务表Entity
 *
 * @author generator
 * @date 2020-03-12 17:08
 */
@MyTable(value = "TransportTaskEntity", name = "transport_task", comment = "接运任务表")
public class TransportTaskEntity extends BaseEntity {
    /**
     * 业务编码
     */
    @MyColumn(value = "businessCode", name = "business_code", comment = "业务编码", required = true)
    private String businessCode;

    /**
     * 车辆用途编码
     */
    @MyColumn(value = "transportPurposeCode", name = "transport_purpose_code", comment = "车辆用途编码")
    private Integer transportPurposeCode;

    /**
     * 预约时间
     */
    @MyColumn(value = "appointmentTime", name = "appointment_time", comment = "预约时间", required = true)
    private Date appointmentTime;

    /**
     * 车辆类型编码
     */
    @MyColumn(value = "transportCarTypeCode", name = "transport_car_type_code", comment = "车辆类型编码", required = true)
    private Integer transportCarTypeCode;

    /**
     * 接运车辆外键
     */
    @MyColumn(value = "transportCarId", name = "transport_car_id", comment = "接运车辆外键")
    private Integer transportCarId;

    /**
     * 车牌号
     */
    @MyColumn(value = "transportCarNo", name = "transport_car_no", comment = "车牌号", required = true)
    private String transportCarNo;

    /**
     * 司机账号外键
     */
    @MyColumn(value = "driverUserId", name = "driver_user_id", comment = "司机账号外键")
    private Integer driverUserId;

    /**
     * 司机姓名
     */
    @MyColumn(value = "driverUserName", name = "driver_user_name", comment = "司机姓名")
    private String driverUserName;

    /**
     * 司机电话
     */
    @MyColumn(value = "driverUserTelephone", name = "driver_user_telephone", comment = "司机电话")
    private String driverUserTelephone;

    /**
     * 接尸地点
     */
    @MyColumn(value = "transportPlace", name = "transport_place", comment = "接尸地点")
    private String transportPlace;

    /**
     * 接运联系人
     */
    @MyColumn(value = "transportLinkman", name = "transport_linkman", comment = "接运联系人")
    private String transportLinkman;

    /**
     * 接运联系电话
     */
    @MyColumn(value = "transportTelephone", name = "transport_telephone", comment = "接运联系电话")
    private String transportTelephone;

    /**
     * 出车时间
     */
    @MyColumn(value = "departureTime", name = "departure_time", comment = "出车时间")
    private Date departureTime;

    /**
     * 回车时间
     */
    @MyColumn(value = "returnTime", name = "return_time", comment = "回车时间")
    private Date returnTime;

    /**
     * 流程状态
     */
    @MyColumn(value = "processStateCode", name = "process_state_code", comment = "流程状态", required = true)
    private Integer processStateCode;

    /**
     * 是否返空
     */
    @MyColumn(value = "asEmptyCar", name = "as_empty_car", comment = "是否返空", required = true)
    private Integer asEmptyCar;

    /**
     * 行驶里程
     */
    @MyColumn(value = "transportDistance", name = "transport_distance", comment = "行驶里程")
    private BigDecimal transportDistance;

    /**
     * 规则数量
     */
    @MyColumn(value = "ruleNumber", name = "rule_number", comment = "规则数量", required = true)
    private BigDecimal ruleNumber;

    /**
     * 规则单位
     */
    @MyColumn(value = "ruleUnit", name = "rule_unit", comment = "规则单位", required = true)
    private String ruleUnit;

    /**
     * 规则编码
     */
    @MyColumn(value = "ruleCode", name = "rule_code", comment = "规则编码")
    private String ruleCode;

    /**
     * 规则备注
     */
    @MyColumn(value = "ruleRemark", name = "rule_remark", comment = "规则备注")
    private String ruleRemark;

    /**
     * 备注
     */
    @MyColumn(value = "remark", name = "remark", comment = "备注")
    private String remark;

    /**
     * 随机码
     */
    @MyColumn(value = "randomCode", name = "random_code", comment = "随机码")
    private String randomCode;

    /**
     * 费用外键
     */
    @MyColumn(value = "chargeId", name = "charge_id", comment = "费用外键")
    private Integer chargeId;


    public String getBusinessCode() {
        return businessCode;
    }

    public TransportTaskEntity setBusinessCode(String businessCode) {
        this.businessCode = businessCode;
        return this;
    }

    public Integer getTransportPurposeCode() {
        return transportPurposeCode;
    }

    public TransportTaskEntity setTransportPurposeCode(Integer transportPurposeCode) {
        this.transportPurposeCode = transportPurposeCode;
        return this;
    }

    public Date getAppointmentTime() {
        return appointmentTime;
    }

    public TransportTaskEntity setAppointmentTime(Date appointmentTime) {
        this.appointmentTime = appointmentTime;
        return this;
    }

    public Integer getTransportCarTypeCode() {
        return transportCarTypeCode;
    }

    public TransportTaskEntity setTransportCarTypeCode(Integer transportCarTypeCode) {
        this.transportCarTypeCode = transportCarTypeCode;
        return this;
    }

    public Integer getTransportCarId() {
        return transportCarId;
    }

    public TransportTaskEntity setTransportCarId(Integer transportCarId) {
        this.transportCarId = transportCarId;
        return this;
    }

    public String getTransportCarNo() {
        return transportCarNo;
    }

    public TransportTaskEntity setTransportCarNo(String transportCarNo) {
        this.transportCarNo = transportCarNo;
        return this;
    }

    public Integer getDriverUserId() {
        return driverUserId;
    }

    public TransportTaskEntity setDriverUserId(Integer driverUserId) {
        this.driverUserId = driverUserId;
        return this;
    }

    public String getDriverUserName() {
        return driverUserName;
    }

    public TransportTaskEntity setDriverUserName(String driverUserName) {
        this.driverUserName = driverUserName;
        return this;
    }

    public String getDriverUserTelephone() {
        return driverUserTelephone;
    }

    public TransportTaskEntity setDriverUserTelephone(String driverUserTelephone) {
        this.driverUserTelephone = driverUserTelephone;
        return this;
    }

    public String getTransportPlace() {
        return transportPlace;
    }

    public TransportTaskEntity setTransportPlace(String transportPlace) {
        this.transportPlace = transportPlace;
        return this;
    }

    public String getTransportLinkman() {
        return transportLinkman;
    }

    public TransportTaskEntity setTransportLinkman(String transportLinkman) {
        this.transportLinkman = transportLinkman;
        return this;
    }

    public String getTransportTelephone() {
        return transportTelephone;
    }

    public TransportTaskEntity setTransportTelephone(String transportTelephone) {
        this.transportTelephone = transportTelephone;
        return this;
    }

    public Date getDepartureTime() {
        return departureTime;
    }

    public TransportTaskEntity setDepartureTime(Date departureTime) {
        this.departureTime = departureTime;
        return this;
    }

    public Date getReturnTime() {
        return returnTime;
    }

    public TransportTaskEntity setReturnTime(Date returnTime) {
        this.returnTime = returnTime;
        return this;
    }

    public Integer getProcessStateCode() {
        return processStateCode;
    }

    public TransportTaskEntity setProcessStateCode(Integer processStateCode) {
        this.processStateCode = processStateCode;
        return this;
    }

    public Integer getAsEmptyCar() {
        return asEmptyCar;
    }

    public TransportTaskEntity setAsEmptyCar(Integer asEmptyCar) {
        this.asEmptyCar = asEmptyCar;
        return this;
    }

    public BigDecimal getTransportDistance() {
        return transportDistance;
    }

    public TransportTaskEntity setTransportDistance(BigDecimal transportDistance) {
        this.transportDistance = transportDistance;
        return this;
    }

    public BigDecimal getRuleNumber() {
        return ruleNumber;
    }

    public TransportTaskEntity setRuleNumber(BigDecimal ruleNumber) {
        this.ruleNumber = ruleNumber;
        return this;
    }

    public String getRuleUnit() {
        return ruleUnit;
    }

    public TransportTaskEntity setRuleUnit(String ruleUnit) {
        this.ruleUnit = ruleUnit;
        return this;
    }

    public String getRuleCode() {
        return ruleCode;
    }

    public TransportTaskEntity setRuleCode(String ruleCode) {
        this.ruleCode = ruleCode;
        return this;
    }

    public String getRuleRemark() {
        return ruleRemark;
    }

    public TransportTaskEntity setRuleRemark(String ruleRemark) {
        this.ruleRemark = ruleRemark;
        return this;
    }

    public String getRemark() {
        return remark;
    }

    public TransportTaskEntity setRemark(String remark) {
        this.remark = remark;
        return this;
    }

    public String getRandomCode() {
        return randomCode;
    }

    public TransportTaskEntity setRandomCode(String randomCode) {
        this.randomCode = randomCode;
        return this;
    }

    public Integer getChargeId() {
        return chargeId;
    }

    public TransportTaskEntity setChargeId(Integer chargeId) {
        this.chargeId = chargeId;
        return this;
    }
}